package com.rabincorp.facepoll.domain.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author isakrabin
 */
public abstract class BasicEntity {

    @Temporal(value= TemporalType.TIMESTAMP)
    @Column(nullable=false)
    private Date createdDate;
        
    private String createdBy;
    
    @Temporal(value = TemporalType.TIMESTAMP)
    @Column(nullable=false)
    private Date lastUpdatedDate;
    
    private String lastUpdatedBy;

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedDate() {
        return createdDate;
    }

    public void setCreatedDate(Date createdDate) {
        this.createdDate = createdDate;
    }

    public String getLastUpdatedBy() {
        return lastUpdatedBy;
    }

    public void setLastUpdatedBy(String lastUpdatedBy) {
        this.lastUpdatedBy = lastUpdatedBy;
    }

    public Date getLastUpdatedDate() {
        return lastUpdatedDate;
    }

    public void setLastUpdatedDate(Date lastUpdatedDate) {
        this.lastUpdatedDate = lastUpdatedDate;
    }
    
    
}
